<template>
  <el-table :data="detail" border style="width: 100%">
    <el-table-column label="编号" type="index" width="60" />

    <el-table-column label="企业名称" prop="entName" show-overflow-tooltip />
    <el-table-column label="统一社会信用代码/注册号" prop="creditNo" show-overflow-tooltip />
    <el-table-column label="登记机关" prop="departMent" show-overflow-tooltip />
    <el-table-column label="公告期" prop="noticePeriodDate" show-overflow-tooltip />
    <el-table-column label="异议信息" width="300" show-overflow-tooltip>
      <template #default="{ row }">
        <div v-if="row.gsScaObjections">
          <el-table :data="row.gsScaObjections">
            <el-table-column label="异议时间" prop="date" />
            <el-table-column label="异议内容" prop="content" />
            <el-table-column label="申请异议人" prop="proposer" />
          </el-table>
        </div>
      </template>
    </el-table-column>
    <el-table-column label="简易注销结果" width="300" show-overflow-tooltip>
      <template #default="{ row }">
        <div v-if="row.gsScaResult">
          <el-table :data="row.gsScaResult">
            <el-table-column label="核准日期" prop="date" />
            <el-table-column label="简易注销结果" prop="result" />
          </el-table>
        </div>
      </template>
    </el-table-column>
  </el-table>
</template>

<script setup lang="ts">
const props = defineProps({
  detail: Array
})
</script>
